package com.burstly.lib.component.networkcomponent.burstly.html.mraid;

import com.burstly.lib.component.networkcomponent.burstly.OverlayContainer;
import com.burstly.lib.component.networkcomponent.burstly.html.IRichMediaAdListener;
import com.burstly.lib.util.LoggerExt;

class CloseEvent extends MraidEvent
{
  static final int EVENT_ID = 2;
  private static final String STATE = "state";

  void fireEvent(MraidView paramMraidView, Object[] paramArrayOfObject)
  {
    MraidViewState localMraidViewState = paramMraidView.mViewState;
    MraidBridgeState localMraidBridgeState = localMraidViewState.getState();
    IRichMediaAdListener localIRichMediaAdListener = paramMraidView.mRichMediaListener;
    switch (1.$SwitchMap$com$burstly$lib$component$networkcomponent$burstly$html$mraid$MraidBridgeState[localMraidBridgeState.ordinal()])
    {
    default:
    case 1:
    case 2:
    case 3:
    case 4:
    }
    label216: OverlayContainer localOverlayContainer1;
    do
    {
      OverlayContainer localOverlayContainer3;
      do
      {
        return;
        MraidView.LOG.logDebug(MraidView.TAG, "Executing 'close' for default state", new Object[0]);
        paramMraidView.setVisibility(8);
        paramMraidView.fireSimpleChangeEvent("state", MraidBridgeState.HIDDEN.name().toLowerCase());
        if (localIRichMediaAdListener != null)
          localIRichMediaAdListener.onHide();
        localMraidViewState.setState(MraidBridgeState.HIDDEN);
        localOverlayContainer3 = paramMraidView.getOpenedOverlay();
      }
      while (localOverlayContainer3 == null);
      localOverlayContainer3.hideOverlayed();
      paramMraidView.setOpenedOverlay(null);
      return;
      MraidView.LOG.logDebug(MraidView.TAG, "Executing 'close' for expanded or resized state", new Object[0]);
      OverlayContainer localOverlayContainer2 = paramMraidView.getOpenedOverlay();
      if (localOverlayContainer2 != null)
      {
        localOverlayContainer2.hideOverlayed();
        paramMraidView.setOpenedOverlay(null);
      }
      paramMraidView.fireSimpleChangeEvent("state", MraidBridgeState.DEFAULT.name().toLowerCase());
      if (localIRichMediaAdListener != null)
      {
        if (localMraidBridgeState != MraidBridgeState.EXPANDED)
          break label216;
        localIRichMediaAdListener.onExpandClose();
      }
      while (true)
      {
        localMraidViewState.setState(MraidBridgeState.DEFAULT);
        return;
        localIRichMediaAdListener.onResizeClose();
      }
      MraidView.LOG.logDebug(MraidView.TAG, "Executing 'close' for loading state", new Object[0]);
      localOverlayContainer1 = paramMraidView.getOpenedOverlay();
    }
    while (localOverlayContainer1 == null);
    localOverlayContainer1.hideOverlayed();
    paramMraidView.setOpenedOverlay(null);
    paramMraidView.stopLoading();
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.mraid.CloseEvent
 * JD-Core Version:    0.6.2
 */